{
  "properties" : { },
  "id" : "4c2e37c1bf3e4796ada258257a56e1e9",
  "script" : null,
  "groupId" : "83d63b877b1f4a0bb3ed6597add2b2d5",
  "name" : "动态调整日志级别",
  "createTime" : null,
  "updateTime" : 1691666353792,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "dynamic_logger",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 1,\n    \"message\": \"success\",\n    \"data\": \"OK\",\n    \"timestamp\": 1691661174532,\n    \"executeTime\": 41\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.LoggerContext;
 
var levelName = "debug";
var packageName = "com.demo";
 
LoggerFactory.getILoggerFactory().getLogger(packageName).setLevel(Level.toLevel(levelName));
 
return "OK";